package com.qkjia.zuulproxy;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;

@EnableZuulProxy//开启Zuulapi网关
@EnableDiscoveryClient//开启注册中心配置中心
@SpringBootApplication
public class ZuulProxyApplication {

    public static void main(String[] args) {
        SpringApplication.run(ZuulProxyApplication.class, args);
    }

    //这里我们通过启动eureka-server，两个user-service，feign-service和zuul-proxy
    // 来演示Zuul的常用功能，启动后注册中心显示如下。

}
